package com.lnsf.model;

import java.util.Date;

public class Stock {
	private int stId;
	private int shId;
	private int gId;
	private int stNum;
	private Date purchaseDate;
	public int getStId() {
		return stId;
	}
	public void setStId(int stId) {
		this.stId = stId;
	}
	public int getShId() {
		return shId;
	}
	public void setShId(int shId) {
		this.shId = shId;
	}
	public int getgId() {
		return gId;
	}
	public void setgId(int gId) {
		this.gId = gId;
	}
	public int getStNum() {
		return stNum;
	}
	public void setStNum(int stNum) {
		this.stNum = stNum;
	}
	public Date getPurchaseDate() {
		return purchaseDate;
	}
	public void setPurchaseDate(Date purchaseDate) {
		this.purchaseDate = purchaseDate;
	}
	public Stock(int stId, int shId, int gId, int stNum, Date purchaseDate) {
		super();
		this.stId = stId;
		this.shId = shId;
		this.gId = gId;
		this.stNum = stNum;
		this.purchaseDate = purchaseDate;
	}
	@Override
	public String toString() {
		return stId + "\t\t" + shId + "\t\t" + gId + "\t\t" + stNum + "\t\t"
				+ purchaseDate ;
	}
	
}
